{counter start=0 skip=1 assign="ct"}
{foreach from=$elements_list item="el"}
{counter assign="ct"}
	{if $ct >= $page_data.current_page.from && $ct <= $page_data.current_page.to}
		{assign_array3 key=$ct value=$el assign="paged_elements"}
	{/if}
{/foreach}
<table width="100%" cellpadding="6" cellspacing="0" border="0" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{if $paged_elements}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>
		<td  style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="70">{t t='Žymėjimas'}</td>
		<td  style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="110">{t t='Rodoma nuo'}</td>	
		<td  style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="110">{t t='Rodoma iki'}</td>	
		<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px">{t t='Pavadinimas'}</td>	
		<td align="right">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td height="20" width="70" style="border-left:1px solid #D6DBDE; text-align:center">{t t='Būsena'}</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

{foreach from=$paged_elements item="el"}

<div id="childs_id_{$el.id}">
	{include file="admin/body/elements/news_item.htm"}
</div>

{/foreach}
{else}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" align="center" style="padding:15px">{t t='Šis puslapis neturi elementų. Sukurkite juos!'}</td>		
	</tr>
</table>
{/if}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>	
</table>
</td>		
</tr>
</table>